package com.gzqylc.docker.extend.auth.domain;

import com.gzqylc.docker.extend.auth.enums.PermissionsOptionType;
import com.gzqylc.lang.Comment;
import com.gzqylc.lang.web.base.BaseEntitySimple;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * @Desc： 基础角色
 * @ClassName BaseRole
 * @Author 孔晓文
 * @Date 2022/3/3 上午10:38
 */
@Getter
@Setter
@Entity
@FieldNameConstants
@Table(name = "base_role")
public class BaseRole extends BaseEntitySimple {

    @Comment("角色名称")
    private String roleName;

    @Comment("数据权限范围")
    @Enumerated(EnumType.STRING)
    private PermissionsOptionType permissionsOptionType;



    @Comment("账号状态 true 启用 false停用")
    private Boolean status;
}
